<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>运营平台</title>
    <import type="css" basepath="__CSS__" file="bootstrap" />
	<import type="css" basepath="__CSS__" file="datetimepicker" />
	<import type="css" basepath="__CSS__" file="fontawesome" />
	<import type="css" basepath="__CSS__" file="fonts" />
	<import type="css" basepath="__CSS__" file="bootgrid" />
	<import type="css" basepath="__CSS__" file="style" />
	<import type="css" basepath="__CSS__" file="newStudentWeb" />
	
	<link rel="stylesheet" href="/App/Admin/public/css/richTextEdictor/froala_editor.min.css" type="text/css">
	
	

    <style>
        section {
            width: 80%;
            margin: auto;
            text-align: left;
        }
    </style>
</head>

<body>
<div class="topNav">
    <span class="text"><i class="iconfont">&#xe607;</i><a href="{:U('Index/index')}" target="_top" >首页</a>&gt;<span>意见反馈</span>&gt;<span>回复编辑</span></span>
</div>

<div class="contain">
    <div class="pageTitle">
        <h2 class="title">回复编辑</h2>
    </div>
    <div class="searchBox">
        <form method="post">
            <!-- formOne formTwo formThree formFour(备用) -->
         
            <input type="hidden" class="updateid" value="{$dataInfo.id}">
         
            <div class="formOne">
                
                <div class="line">
                    <span class="name">反馈信息</span>
                    <div class="col-md-6 col-sm-10 col-xs-8">
                        <input type="text" id="title" value="{$dataInfo.feedback}" height="200px"  readonly  class="inpTextOne form-control">
                    </div>
                </div>
            </div>
        
    </div>
    <div class="pageTitle newEdictorPageTitle">
        <h2 class="title">编辑内容</h2>
    </div>
    <div class="newEdictorTitle">
        <section id="editor">
            <textarea id='edit'  class="editClass" style="margin-top: 30px;" >{$dataInfo.reply}</textarea>
        </section>
    </div>
    <div class="newEdictorYesBtn">
        <div class="col-md-9" style="margin:2% 38%;">
            <button  class="btn btn-success btn-lg">保存</button>
            <a href="{:U("Feed/index")}"><button type="button" class="btn btn-info btn-lg">返回</button></a>
        </div>
    </div>
</div>
</form>


<script src="/App/Admin/public/js/jquery-2.1.1.min.js"></script>
<script src="/App/Admin/public/js/bootstrap.min.js"></script>
<script src="/App/Admin/public/js/jquery.datetimepicker.js"></script>
<script src="/App/Admin/public/js/jquery.bootgrid.min.js"></script>
<script src="/App/Admin/public/js/jquery.bootgrid.fa.min.js"></script>
<script src="/App/Admin/public/js/time.js"></script>
<script src="/App/Admin/public/js/tables.js"></script>
<script src="/App/Admin/public/js/richTextEdictor/froala_editor.min.js"></script>
<!--[if lt IE 9]>
<script src="js/richTextEdictor/froala_editor_ie8.min.js"></script>
<![endif]-->
<script src="/App/Admin/public/js/richTextEdictor/plugins/tables.min.js"></script>
<script src="/App/Admin/public/js/richTextEdictor/plugins/lists.min.js"></script>
<script src="/App/Admin/public/js/richTextEdictor/plugins/colors.min.js"></script>
<script src="/App/Admin/public/js/richTextEdictor/plugins/media_manager.min.js"></script>
<script src="/App/Admin/public/js/richTextEdictor/plugins/font_family.min.js"></script>
<script src="/App/Admin/public/js/richTextEdictor/plugins/font_size.min.js"></script>
<script src="/App/Admin/public/js/richTextEdictor/plugins/block_styles.min.js"></script>
<script src="/App/Admin/public/js/richTextEdictor/plugins/video.min.js"></script>

<script>
    $(function(){
        $('#edit').editable({inlineMode: false, alwaysBlank: true})
    });
</script>

<script type="text/javascript">
	$('.btn-success').on('click',function(){
    var reply=$('.editClass').val();
	var updateid=$('.updateid').val();
/*	alert(title);alert(colid);alert(content);alert(updateid);die();*/
  $.post('{:U("Feed/saveEdit")}',{reply:reply,updateid:updateid},function(data){
		  if(data.status==100){
		 	//	alert('修改成功');
				window.location='{:U("Feed/index")}';
			   }else{
				alert(data.info);
				 }
		 })
	
	
});
	</script>


</body>
</html>